import numpy as np
str = "00010001000001001010000000000010001010000101000110011001000001101000101111010110111001100000001011101110011101100010001000100110101011111111001011000010001111100000101110001000011001111000000011100011"  # 200长的字符串

# 将字符串转换为列表
string_list = list(str)
print(string_list)

# 将列表中的元素转换为整数
int_list = [int(i) for i in string_list]
print(int_list)

# 将列表转换为NumPy数组
array_1d = np.array(int_list)

# 将1D数组转换为1x200的2D数组
array_2d = array_1d.reshape(1, -1)

print(array_2d)
